package net.hcpme.activity.adapter;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class TacticsAdapter extends BaseAdapter {

    private Context context;
    private List<String> message;

    public TacticsAdapter(Context context, List<String> message) {
        this.context = context;
        this.message = message;
    }

    @Override
    public int getCount() {
        return message.size();
    }

    @Override
    public Object getItem(int position) {
        return message.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        TextView textView = new TextView(context);
        textView.setText(message.get(position));
        return textView;
    }

}
